<?php

namespace Users\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Users
 *
 * @ORM\Table(name="Users")
 * @ORM\Entity
 */
class Users
{
    /**
     * @var string $username
     *
     * @ORM\Column(name="UserName", type="string", length=24, nullable=false)
     */
    protected $username;

    /**
     * @var string $password
     *
     * @ORM\Column(name="Password", type="string", length=45, nullable=false)
     */
    protected $password;

    /**
     * @var string $email
     *
     * @ORM\Column(name="Email", type="string", length=45, nullable=false)
     */
    protected $email;

    /**
     * @var boolean $active
     *
     * @ORM\Column(name="Active", type="boolean", nullable=false)
     */
    protected $active;

    /**
     * @var \DateTime $created
     *
     * @ORM\Column(name="Created", type="datetime", nullable=false)
     */
    protected $created;

    /**
     * @var \DateTime $updated
     *
     * @ORM\Column(name="Updated", type="datetime", nullable=false)
     */
    protected $updated;

    /**
     * @var integer $idusers
     *
     * @ORM\Column(name="idUsers", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    protected $idusers;
    
    /**
     * Magic getter to expose protected properties.
     *
     * @param string $property
     * @return mixed
     */
    public function __get($property)
    {
    	return $this->$property;
    }
    
    /**
     * Magic setter to save protected properties.
     *
     * @param string $property
     * @param mixed $value
     */
    public function __set($property, $value)
    {
    	$this->$property = $value;
    }
    
    public function getArrayCopy()
    {
    	return get_object_vars($this);
    }

}